<!--
*Author：DGZ
 *Contact：jiduxiong@dagongzao.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/bizappproject/app_wgjy/tech_icp.jsx此处编写
 -->
<template>
    <view-grid ref="grid"
               :columns="columns"
               :detail="detail"
               :details="details"
               :editFormFields="editFormFields"
               :editFormOptions="editFormOptions"
               :searchFormFields="searchFormFields"
               :searchFormOptions="searchFormOptions"
               :table="table"
               :extend="extend">
    </view-grid>
</template>
<script>
    import extend from "@/extension/bizappproject/app_wgjy/tech_icp.jsx";
    import { ref, defineComponent } from "vue";
    export default defineComponent({
        name: "tech_icp",
        setup() {
            const table = ref({
                key: "Id",
                footer: "Foots",
                cnName: "ICP测试",
                name: "app_wgjy/tech_icp",
                newTabEdit: false,
                url: "/tech_icp/",
                sortName: "Id"
            });
            const editFormFields = ref({"Partner":"","DateCome":"","Product":"","Lot":"","Pr":"","Nd":"","Dy":"","Tb":"","Gd":"","Ho":"","Fe":"","Al":"","B":"","Ga":"","Cu":"","Co":"","Ce":"","Zr":"","Remarks":""});
            const editFormOptions = ref([[{"title":"来样单位","field":"Partner"},
                               {"title":"来样日期","field":"DateCome"}],
                              [{"title":"名称","field":"Product"},
                               {"title":"编码","field":"Lot"}],
                              [{"title":"Pr","field":"Pr"},
                               {"title":"Nd","field":"Nd"}],
                              [{"title":"Dy","field":"Dy"},
                               {"title":"Tb","field":"Tb"}],
                              [{"title":"Gd","field":"Gd"},
                               {"title":"Ho","field":"Ho"}],
                              [{"title":"Fe","field":"Fe"},
                               {"title":"Al","field":"Al"}],
                              [{"title":"B","field":"B"},
                               {"title":"Ga","field":"Ga"}],
                              [{"title":"Cu","field":"Cu"},
                               {"title":"Co","field":"Co"}],
                              [{"title":"Ce","field":"Ce"},
                               {"title":"Zr","field":"Zr"}],
                              [{"title":"备注","field":"Remarks","colSize":12,"type":"textarea"}]]);
            const searchFormFields = ref({});
            const searchFormOptions = ref([]);
            const columns = ref([{field:"Partner",title:"来样单位",type:"string",width:150,showOverflowTooltip:true,align:"left"},
                       {field:"DateCome",title:"来样日期",type:"datetime",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"Product",title:"名称",type:"string",width:150,showOverflowTooltip:true,align:"left"},
                       {field:"Lot",title:"编码",type:"string",width:150,showOverflowTooltip:true,align:"left"},
                       {field:"Pr",title:"Pr",type:"string",width:150,showOverflowTooltip:true,align:"left"},
                       {field:"Nd",title:"Nd",type:"string",width:150,showOverflowTooltip:true,align:"left"},
                       {field:"Dy",title:"Dy",type:"string",width:150,showOverflowTooltip:true,align:"left"},
                       {field:"Tb",title:"Tb",type:"string",width:150,showOverflowTooltip:true,align:"left"},
                       {field:"Gd",title:"Gd",type:"string",width:150,showOverflowTooltip:true,align:"left"},
                       {field:"Ho",title:"Ho",type:"string",width:150,showOverflowTooltip:true,align:"left"},
                       {field:"Fe",title:"Fe",type:"string",width:150,showOverflowTooltip:true,align:"left"},
                       {field:"Al",title:"Al",type:"string",width:150,showOverflowTooltip:true,align:"left"},
                       {field:"B",title:"B",type:"string",width:150,showOverflowTooltip:true,align:"left"},
                       {field:"Ga",title:"Ga",type:"string",width:150,showOverflowTooltip:true,align:"left"},
                       {field:"Cu",title:"Cu",type:"string",width:150,showOverflowTooltip:true,align:"left"},
                       {field:"Co",title:"Co",type:"string",width:150,showOverflowTooltip:true,align:"left"},
                       {field:"Ce",title:"Ce",type:"string",width:150,showOverflowTooltip:true,align:"left"},
                       {field:"Zr",title:"Zr",type:"string",width:150,showOverflowTooltip:true,align:"left"},
                       {field:"RE",title:"RE",type:"string",width:120,showOverflowTooltip:true,align:"left"},
                       {field:"Id",title:"键",type:"bigint",width:110,hidden:true,readonly:true,require:true,showOverflowTooltip:true,align:"left"},
                       {field:"Creator",title:"创建人名",type:"string",width:100,showOverflowTooltip:true,align:"left"},
                       {field:"CreateTime",title:"创建时间",type:"datetime",width:110,showOverflowTooltip:true,align:"left"}]);
            const detail = ref({columns:[]});
            const details = ref([]);
            return {
                table,
                extend,
                editFormFields,
                editFormOptions,
                searchFormFields,
                searchFormOptions,
                columns,
                detail,
                details
            };
        },
    });
</script>
